package engine.display.newAttack.vo
{
	import newx.com.config.StaticIni;

	/**
	 *宠物战报 
	 * @author liuel
	 * 
	 */	
	public class FightPetInfoVo
	{
		//位置
		public var pos 		: int;
		
		public var petid 		: int;
		
		public var petname		: String;
		
		public var petgrade	:String;
		
		public var petlevel	:String;
		
		public var petproplevel:String; 
		
		public var petfightpower:String;
		
		public var petMaxHP	:String;
		//普攻
		public var petPhyDamage:String;
		//绝攻
		public var petMagDamage:String;
		//普防
		public var petPhyDef	:String;
		//绝防
		public var petMagDef	:String;
		//命中
		public var petPhyHitProb:String;
		//闪避
		public var petPhyDodgeProb:String;
		//暴击
		public var petPhyVaProb	:String;
		//韧性
		public var petPhyVaDefProb	:String;
		//格挡
		public var petPhyWardProb	:String;
		//破击
		public var petDePhyWardProb:String;
		//招架 
		public var petPhyGuardProb	:String;
		//破招
		public var petDePhyGuardProb:String;
		//clothemodel
		public function FightPetInfoVo( fightInfoXml : XML )
		{
			
			var id : int = fightInfoXml.@petid;
			
			if( 0 == id ) return;
			pos 	= fightInfoXml.@pos;
			petid = int(StaticIni.getIniVar(String(id),"Model"));
			petname = fightInfoXml.@petname;
			petgrade= fightInfoXml.@petgrade;
			petfightpower = fightInfoXml.@petfightpower;
			petlevel=fightInfoXml.@petlevel;
			petproplevel=fightInfoXml.@petproplevel;
			
			petMaxHP			= fightInfoXml.@PetMaxHP;
			petPhyDamage		= fightInfoXml.@PetPhyDamage;
			petMagDamage		= fightInfoXml.@PetMagDamage;
			petPhyDef			= fightInfoXml.@PetPhyDef;
			petMagDef			= fightInfoXml.@PetMagDef;
			petPhyHitProb		= fightInfoXml.@PetPhyHitProb;
			petPhyDodgeProb		= fightInfoXml.@PetPhyDodgeProb;
			petPhyVaProb		= fightInfoXml.@PetPhyVaProb;
			petPhyVaDefProb		= fightInfoXml.@PetPhyVaDefProb;
			petPhyWardProb		= fightInfoXml.@PetPhyWardProb;
			petDePhyWardProb	= fightInfoXml.@PetDePhyWardProb;
			petPhyGuardProb		= fightInfoXml.@PetPhyGuardProb;
			petDePhyGuardProb	= fightInfoXml.@PetDePhyGuardProb;
		}
	}
}